package com.xingxuecn.limit.common.model;

import org.apache.commons.lang3.builder.MultilineRecursiveToStringStyle;
import org.apache.commons.lang3.builder.ToStringBuilder;

/**
 * @author 陈前钱 at 2018/9/13 0013 下午 3:34
 */
public class Role {
    private Integer id;
    private String name;
    private Integer type;
    private Integer state;

    public Role() {
    }

    public Role(Integer id, String name, Integer type, Integer state) {
        this.id = id;
        this.name = name;
        this.type = type;
        this.state = state;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, new MultilineRecursiveToStringStyle())
                .append("id", id)
                .append("name", name)
                .append("type", type)
                .append("state", state)
                .toString();
    }
}
